<!--/* 主题 js */-->
<th:block th:fragment="scripts">
  <!--/* 基础 JS */-->
  <script type="module" async th:src="@{/assets/dist/main.min.js}"></script>

  <!--/* PJAX */-->
  <script type="module" async th:if="${theme.config.others.poi_pjax}" th:src="@{/assets/dist/libs/pjax.min.js}"></script>

  <script type="module" async th:src="@{/assets/dist/libs/lazysizes.min.js}"></script>

  <script type="text/javascript" th:inline="javascript">
    function imgError(dom) {
      dom.src = "[(${#theme.assets('/images/default/temp.webp')})]"
      dom.onerror = null;
    }
  </script>
</th:block>
